﻿using PetaPoco;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BrnMall.Manager.Domain.Blog
{
    [TableName("crm_blog")]
    [PrimaryKey("id")]
    public class Blogs
    {
        public int Id { get; set; }
        /// <summary>
        /// 店铺iD
        /// </summary>
        public int StoreId { get; set; }
        /// <summary>
        /// 员工ID （0 企业动态，大于0表示 员工动态）
        /// </summary>
        public int Uid { get; set; }
        /// <summary>
        /// 发布的动态内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 图片列表，多个逗号隔开，最多9张
        /// </summary>
        public string Imgs { get; set; }
        /// <summary>
        /// 添加的时间
        /// </summary>
        public DateTime Addtime { get; set; }

        /// <summary>
        /// 点赞数
        /// </summary>
        public int UpCount { get; set; }
        /// <summary>
        /// 浏览数
        /// </summary>
        public int ClickCount{ get; set; }

        public Blogs()
        {
            UpCount = ClickCount = 0;
            Content = Imgs = string.Empty;
        }
    }
}
